﻿using System.Web.Mvc;

namespace PortalWeb.Areas.CmsAdmin
{
    public class CmsAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get { return "CmsAdmin"; }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "CmsAdmin_default",
                "Admin/Cms/{controller}/{action}/{id}",
                defaults: new { action = "Index",  id = UrlParameter.Optional },
                namespaces: new string[] { "PortalWeb.Areas.CmsAdmin.Controllers" }
                );
        }
    }
}